package com.m1905.lib.download.listener;


import com.m1905.lib.download.model.DownloadDBItem;

/**
 * @author wanghao
 * @date 2022/8/11.
 * @des
 */
public interface DownloadStatusListener {

    void onWaiting(DownloadDBItem downloadItem, boolean insert);

    void onStart(DownloadDBItem downloadItem);

    void onFileSize(DownloadDBItem downloadItem);

    void onLoading(DownloadDBItem downloadItem);

    void onSuccess(DownloadDBItem downloadItem);

    void onFailure(DownloadDBItem downloadItem);

    void onCancel(DownloadDBItem downloadItem);

    void onDelete(DownloadDBItem downloadItem);

    void onCmdComplete(int status);


}
